<?php
use pft\Prod\Ticket;
include 'common/autoload.php';
$dtype = $_SESSION['dtype'];
$pid = $_GET['pid'];
if(!$pid) {
    exit('参数PID出错！');
}
if(($dtype ==6 || $dtype ==0) && $_SESSION['memberID']>0 ) {
    $ticket = new Ticket($GLOBALS['le']);
    if($ticket->AddProd2SaleList($_SESSION['memberID'])==1){
        header('location:prodlists.html');
        exit;
    }
}
else{
    exit('商户类型错误或登录超时，请重新登录！');
}
?>